package com.group9.nepmserver.controller;

import com.group9.nepmserver.pojo.Aqi;
import com.group9.nepmserver.service.IAqiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/aqi")
public class AqiController {

    @Autowired
    private IAqiService aqiService;

    @RequestMapping("/listAqiAll")
    public List<Aqi> listAqiAll(){
        return aqiService.listAqiAll();
    }
}
